package com.ubi.core.framework.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;

@Documented
@Constraint(validatedBy = { EmojiPreventValidator.class })
@Target({ METHOD, FIELD, PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
public @interface EmojiPrevent {

    String message() default "{com.netdragon.core.framework.validation.emoji.prevent.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
